String.prototype.format = function(args) {
    var result = this;
    if (arguments.length > 0) {
        if (arguments.length == 1 && typeof (args) == "object") {
            for (var key in args) {
                if(args[key]!=undefined){
                    var reg = new RegExp("({" + key + "})", "g");
                    result = result.replace(reg, args[key]);
                }
            }
        }
        else {
            for (var i = 0; i < arguments.length; i++) {
                if (arguments[i] != undefined) {
                    //var reg = new RegExp("({[" + i + "]})", "g");//这个在索引大于9时会有问题
                    var reg = new RegExp("({)" + i + "(})", "g");
                    result = result.replace(reg, arguments[i]);
             }
          }
       }
   }
   return result;
}

document.writeln("<!DOCTYPE html>");
document.writeln("<html>");
document.writeln("<head>");
document.writeln("  <meta charset=\'utf-8\'>");
document.writeln("  <meta name=\'viewport\' content=\'width=device-width, initial-scale=1, maximum-scale=1\'>");
document.writeln("  <title>投资</title>");
document.writeln("  <link rel=\'stylesheet\' href=\"../../../static/layui/css/layui.css\">");
document.writeln("</head>");
document.writeln("<body class=\'layui-layout-body\'>");
document.writeln("<div class=\'layui-layout layui-layout-admin\'>");
document.writeln("  <div class=\'layui-header\'>");
//document.writeln("    <div class=\'layui-logo\'>投资</div>");
document.writeln("    <!-- 头部区域（可配合layui已有的水平导航） -->");
//document.writeln("    <ul class=\'layui-nav layui-layout-left\'>");
document.writeln("        <!-- 菜单缩放 -->");
document.writeln("      <div  class=\'layui-logo\'>")
document.writeln("        <div class=\'kit-side-fold\' style=\'text-align: center;\'><i class=\'layui-icon\' style=\'margin-left:auto;");
document.writeln("            margin-right:auto;text-align:center;font-size: 30px;\' aria-hidden=\'true\'>&#xe65f</i></div>");
document.writeln("      </div>")

//document.writeln("    </ul>");
document.writeln("    <ul class=\'layui-nav layui-layout-right\'>");
document.writeln("      <li class=\'layui-nav-item\'><a href=\'/admin/\'>管理</a></li>");
document.writeln("    </ul>");
document.writeln("  </div>");
